package com.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**   
* @Title: WebMvcConfig.java 
* @Package com.utils 
* @author 孙梦楠 
* @date 2017年10月30日 下午4:43:47 
* @version V1.0.0   
*/

@Configuration
class WebMvcConfig extends WebMvcConfigurerAdapter {
	
    @Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("swagger-ui.html")
                .addResourceLocations("classpath:/META-INF/resources/");

        registry.addResourceHandler("/webjars/**")
                .addResourceLocations("classpath:/META-INF/resources/webjars/");
    }


}

